﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Diagnostics;

namespace CoD4_Helper
{
    sealed class ProcessUtils
    {
        string explorerStr = "explorer.exe";

        Process explorerProc;

        /// <summary>
        /// Default constructor
        /// </summary>
        public ProcessUtils ()
        {
            explorerProc = new Process();
        }

        /// <summary>
        /// Starts a new explorer windows
        /// </summary>
        /// <param name="folder">The folder you want to open</param>
        public void StartExplorer(string folder)
        {
            explorerProc.StartInfo.FileName = explorerStr;
            explorerProc.StartInfo.Arguments = folder;
            explorerProc.Start();
        }
    }
}
